package cn.edu.sptc.lichaoping.hellespring.controller;

import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/rest")
public class RestRequestContorller {

    @GetMapping("/api100")
    public String api100(){
        return "api100";
    }

    @GetMapping("/api101/{uid}")
    public String api101(@PathVariable("uid") String id){
        return "api101:" +id;
    }

    @GetMapping("/api102")
    public String api102(@RequestParam("uid") String id){
        return "api102:"+id;
    }

}
